﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using SpLocalizer.Common;
using Microsoft.Practices.Unity;

namespace SpLocalizer.ContentSourceProviders.Eml
{
    public class EmlContentLocalizationTask : BaseTranslationTask
    {
        #region Constants
        private const string Property_AttributeName = "Attribute";
        internal const string Attr_Subject = "Subject";
        internal const string Attr_Body = "Body";
        #endregion        

        /// <summary>
        /// XPath query 
        /// </summary>
        public string AttributeName
        {
            get { return this.GetPropertyValue(Property_AttributeName); }
            set { this.SetPropertyValue(Property_AttributeName, value); }
        }

                  /// <summary>
        /// Constructor without parameters should be public for unity injection
        /// </summary>
           public EmlContentLocalizationTask() { }


           internal EmlContentLocalizationTask(CultureInfo FromLanguage, CultureInfo ToLanguage,
                                                string AttributeName, string AttributeValue)
               : base(FromLanguage, ToLanguage)
           {
               this.AttributeName = AttributeName;
               this.SourceText = AttributeValue;
           }
    
    }
}
